#ifndef QGRADIENTDIALOG_H
#define QGRADIENTDIALOG_H

#include <QDialog>
#include "ui_qgradientdialog.h"
#include <QVector>
#include <QLabel>
#include <QColor>
#include <qgradientdialog.h>
#include <QBrush>
#include "flowlayout.h"
class QGradientDialog : public QDialog
{
	Q_OBJECT

public:
	QGradientDialog(QWidget *parent = 0);
	~QGradientDialog();
	QLinearGradient Result(){return result;}
	bool IsOK(){return isOK;}
private:
	Ui::QGradientDialog ui;
	QVector<QPair<qreal,QColor> >stops;
	//QVector<qreal> poss;
	QLinearGradient result;
	bool isOK;
	QColor button_color;
	FlowLayout *layout;
private slots:

	void OK_clicked();
	void Add_clicked();
	void Cancel_clicked();
	void Color_clicked();
};

#endif // QGRADIENTDIALOG_H
